package com.kcwl.idea.plugins.gateway.handler;

import java.util.ArrayList;
import java.util.List;

/**
 * 接受参数类型
 */
public class RouteType {
    private Integer id;
    private String name;

    public RouteType(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return this.name;
    }

    public static List<RouteType> buildList() {
        List<RouteType> list = new ArrayList<>();
        list.add(new RouteType(20,"默认"));
        list.add(new RouteType(23,"json"));
        return list;
    }
}
